
<%--
  Created by IntelliJ IDEA.
  User: 熊思豪
  Date: 2023/1/5
  Time: 16:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加物流信息</title>
</head>
<body>
<form action="/addL" method="post">
    货物名称：<select name="goodsName">
        <c:forEach items="${goods}" var="goods">
            <option value="${Goods.id}">${Goods.goodsName}</option>
        </c:forEach>
    </select><br>
    发货时间：<input type="text" placeholder="发货时间" name="shippingTime"><br>
    到货时间：<input type="text" placeholder="到货时间" name="arrivalTime"><br>
    数量：<input type="text" placeholder="数量" name="quantity"><br>
    收货地址：<select name="shipFromAddress">
    <c:forEach items="${goodsAddresses}" var="goodsAddresses">
        <option value="${goodsAddresses.id}">${Goods.shipFromAddress}</option>
    </c:forEach>
</select><br>
    到货地址：<select name="shippingAddress">
    <c:forEach items="${goodsAddresses}" var="goodsAddresses">
        <option value="${goodsAddresses.id}">${goodsAddresses.shippingAddress}</option>
    </c:forEach>
</select><br>
    <input type="submit" value="提交" style="background-color: #4f4f4f; color: aliceblue;">
</form>
</body>
</html>
